home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / raytrace / rayslide / rayslide.lha / ray-slides / ray / Makefile < prev    next >
Encoding:
Makefile  |  1992-09-14  |  782 b   |  49 lines

  1. FILES = ap1.rle ap2.rle depth.ps depthcolor.rle diff.rle front.rle \
  2.     left.rle mancyl.rle pac.rle pacbw.rle right.rle sphere.rle
  3.  
  4. all: $(FILES)
  5.  
  6. #
  7. #    General case for making URT files
  8. #
  9.  
  10. %.rle: %.ray
  11.     rayshade -R 256 256 %.ray > %.rle
  12.  
  13. #
  14. #    Handle the three stereo views
  15. #
  16.  
  17. left.rle: balls.ray
  18.     rayshade -R 256 256 -l -E 1 balls.ray > left.rle
  19.  
  20. front.rle: balls.ray
  21.     rayshade -R 256 256 balls.ray > front.rle
  22.  
  23. right.rle: balls.ray
  24.     rayshade -R 256 256 -r -E 1 balls.ray > right.rle
  25.  
  26. #
  27. #    Several hacks to generate depth map files
  28. #
  29.  
  30. h2: depth.plot hf
  31.     awk '/#/ || NF == 0 { next } { print }' < depth.plot | hf > h2
  32.  
  33. depth.ps: depth.plot depth.gp
  34.     mkdps
  35.  
  36. depthcolor.rle: depthcolor.ray h2 front.rle
  37.  
  38. hf: hf.c
  39.     cc -g -o hf hf.c
  40.  
  41.  
  42. #
  43. #    Clean up
  44. #
  45.  
  46. clean:
  47.     rm -f *.rle *.ps *.o *.PS hf h2
  48.  
  49.